﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class DragDropContent : MonoBehaviour
{
    public GameObject dragableButton;
    public GameObject emptyButton;
    private GameObject e_Button;
    private void Start()
    {
        e_Button = Instantiate(emptyButton,transform);
        e_Button.SetActive(false);

    }

    public void SetEmpty(int index)
    {
        e_Button.transform.SetSiblingIndex(index);
        e_Button.SetActive(true);
    }
    public void DeActivedEmpty()
    {
        e_Button.SetActive(false);
    }
}
